package com.deer.wms.inventory.service;

import com.deer.wms.intercept.common.data.CurrentUser;
import com.deer.wms.inventory.model.stockTake.StockProfitLoss;
import com.deer.wms.inventory.model.stockTake.StockProfitLossDto;
import com.deer.wms.project.root.service.SuperService;

import java.util.List;


/**
 * Created by csl on 2021/04/15.
 */
public interface StockProfitLossService extends SuperService<StockProfitLoss> {

    //点击生成盈亏单自动生成盘盈入库单，盘亏出库单，并调整库存
    void createProfitOrLoss(StockProfitLossDto stockProfitLossDto, CurrentUser currentUser);

    //查询盘盈和盘亏单
    List<StockProfitLoss> findByProfitLoss(Integer wareId, Integer profitOrLoss);
}
